package com.feng.system.dao;

import com.feng.mbg.domain.SysPermission;

import java.util.List;

/**
 * @author Feng
 * @since 2022/4/19 23:47
 */
public interface SysPermissionDao {

    /**
     * 根据用户ID获取其所有权限
     */
    List<SysPermission> selectByUserId(Long userId);

    List<SysPermission> selectByRoleId(Long roleId);
}
